<template>
    <el-form :inline="true" :model="Canshu" class="demo-form-inline">
    <el-form-item label="关联订单号">
      <el-input v-model="Canshu.OrderNumber" placeholder="请输入关联订单号" clearable />
    </el-form-item>
        <el-form-item label="调拨仓库">
      <el-input v-model="Canshu.AllocateWarehouse" placeholder="请输入调拨仓库" clearable />
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="GetDataTable">查询</el-button>
    </el-form-item>
  </el-form>
    <el-table :data="tableData" style="width: 100%">
            <el-table-column type="index" label="序号" width="100" />
            <el-table-column prop="associatedOrderNumber" label="单号" width="180" />
            <el-table-column prop="productName" label="商品名称" width="200" />
            <el-table-column prop="price" label="商品单价" width="100" />>
            <el-table-column prop="incomingQuantity" label="商品数量" width="100" />
            <el-table-column prop="totalprice" label="总价格" width="180" />
            <el-table-column prop="allocateWarehouseIn" label="调拨仓库" width="100" />/>
    </el-table>
</template>
<!-- {{ moment(scope.row.orderCreatorTime).format('YYYY-MM-DD') }} -->

<script lang="ts" setup>
import axios, { toFormData } from 'axios';
import moment from 'moment';
import { onMounted, ref } from 'vue';
const tableData = ref([]);
const Canshu = ref({
    OrderNumber:"",
    AllocateWarehouse:""
})
//调拨的仓库
const GetDataTable = () => {
    axios.get("http://localhost:5121/api/Inventory/GetTransfer")
        .then(res => {
            tableData.value = res.data.pageData;
        })
}
onMounted(() => {
    GetDataTable();
})
</script>
